package com.icebergteam.warfacewidget.news.ui;

import com.icebergteam.warfacewidget.core.LogManager;

import android.content.Intent;
import android.widget.RemoteViewsService;


public class NewsListViewService extends RemoteViewsService{
	public static String className = NewsListViewService.class.getCanonicalName();
	public static String UNIQUE_INTENT_KEY = String.format("%s.UNIQUE_INTENT_KEY", className);

	@Override
	public RemoteViewsFactory onGetViewFactory(Intent intent) {
		LogManager.LogV(NewsListViewService.className, LogManager.getExecuteMethodName(), ((this.getApplicationContext() == null)? this.getApplicationContext() == null: this.getApplicationContext().toString()), ((intent == null)? intent == null: intent.toString()));
	
		return new NewsListViewFactory(this.getApplicationContext(), intent);
	}

	@Override
	public void onDestroy() {
		LogManager.LogV(NewsListViewService.className, LogManager.getExecuteMethodName());
		super.onDestroy();
	}
}